#include <iostream>

#include "StdMyString.h"

int main()
{
    // //带参构造
    // StdMyString s = "world"; 
    // StdMyString s1 = "hello";
    // StdMyString s2;
    // s2 += s1 += s;                                           
    // std::cout<<s2<<std::endl;

    // StdMyString s1 = "helloworld,helloworld";
    // StdMyString s2 = "world"; 
    // s1 -= s2;
    // std::cout<<s1<<std::endl;

    //StdMyString s1 = "helloworld,helloworld";
    //StdMyString s2 = "world"; 
    //StdMyString s = s1 - s2;
    //std::cout<<s<<std::endl;

    // StdMyString s1 = "helloworld,helloworld";
    // StdMyString s2 = "world"; 

    // s1[0] = 'p';
    // std::cout<<s1<<std::endl;

    // StdMyString s1 = "qwert";
    // StdMyString s2 = "qwery";
    // std::cout<<(s1 == s2)<<std::endl;

    /*不允许*/
    // StdMyString s1;
    // StdMyString s2 = "hello";

    // if(s1 && (s2 += "world"))
    // {
    //     std::cout<<"都不为空\n";
    // }
    // else
    // {
    //     std::cout<<"至少有一个为空\n";
    // }
    // std::cout<<"s1: "<<s1<<std::endl;
    // std::cout<<"s2: "<<s2<<std::endl;

    //StdMyString s = "3.14";
    //double a = (double)s + 1;
    //std::cout<<a<<std::endl;
    //std::cin>>s;
    //std::cout<<s<<std::endl;

    //StdMyString s = "zhangsan,lisi, wangwu";
    //MyStringList list = s.split(",");
    //std::cout<<list;

    MyStringList list1;
    list1 <<"zhangsan"<<"lisi";
    MyStringList list2;
    list2<<"wangwu"<<"aidisajd";
    std::cout<<(list1 + list2);

    return 0;
}